import request from '@/router/axios';
// 客户加注记录
export const getPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillrecorduser/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const getPageRecordPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillprofitsharerecord/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const detail = (id) => {
  return request({
    url: `/api/uic-system/fillrecorduser/detail`,
    method: 'get',
    params: {id}
  })
}

export const shoppayDetail = (orderCode) => {
  return request({
    url: `/api/uic-system/shoppay/detail`,
    method: 'get',
    params: {orderCode}
  })
}

export const summary = (userId) => {
  return request({
    url: `/api/uic-system/fillrecorduser/${userId}/summary`,
    method: 'get',
  })
}


export const summaryByTeam = (teamId, params) => {
  return request({
    url: `/api/uic-system/fillrecorduser/${teamId}/summaryByTeam`,
    method: 'get',
    params
  })
}

export const summaryByAll = (params) => {
  return request({
    url: `/api/uic-system/fillrecorduser/summaryByAll`,
    method: 'get',
    params
  })
}
